package com.it.sun.learning001.aware;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

/**
 * @ClassName com.it.sun.learning001.aware.BeanNameAwareBean
 * @Author sunmannian
 * @Date 2021/6/15 15:21
 * @Version V1.0
 * Description  <请输入一句话描述该类功能>
 * Copyright (C) 北京中电兴发科技有限公司  since 2021/6/15
 */
@Component
public class BeanNameAwareImpl implements BeanNameAware {

	private String name;

	@Override
	public void setBeanName(String name) {
		this.name = name;
		System.err.println("beanName  is " + name);
	}
}



